<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../js/jquery-1.11.3.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
			$(function(){
				$(".color1").css('background-color','yellow')
				$(".color2").css('background-color','green')
			});
			
		</script>
	</head>
	<body>
		<table border="1px" cellspacing="0" width="500px">
			<tr class="color1">
				<td>序号</td>
				<td>名称</td>
				<td>价格</td>
				<td>数量</td>
			</tr>
			<tr>
				<td>1</td>
				<td>htc</td>
				<td>3200</td>
				<td>10</td>
			</tr>
			<tr class="color2">
				<td>2</td>
				<td>apple</td>
				<td>4300</td>
				<td>13</td>
			</tr>
			<tr>
				<td>3</td>
				<td>nokia</td>
				<td>2300</td>
				<td>22</td>
			</tr>
			<tr class="color2">
				<td>4</td>
				<td>sumsung</td>
				<td>3500</td>
				<td>35</td>
			</tr>
			<tr>
				<td>5</td>
				<td>huawei</td>
				<td>2500</td>
				<td>27</td>
			</tr>
			<!--<input type="button" onclick="changleColor()"/>-->
		</table>
	</body>
</html>
